home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_400 / 440_01 / examples / lib_test.log < prev    next >
Encoding:
Text File  |  1993-07-16  |  3.4 KB  |  94 lines

  1. --------------------------------------------------------------------------------
  2. BEST C LIBRARY SPEED TEST RESULTS
  3. --------------------------------------------------------------------------------
  4.  
  5. --------------------------------------------------------------------------------
  6. BAR vs BOXFILL
  7.  
  8. BAR
  9. draws a solid rectangle
  10. standard C library
  11. (BAR 8x8)   14992 solid rectangles per second
  12. (BAR 16x16) 5442 solid rectangles per second
  13. (BAR 64x64) 1269 solid rectangles per second
  14.  
  15. BOXFILL
  16. draws a solid rectangle
  17. BEST C library
  18. (BOXFILL 8x8)   41259 solid rectangles per second -- 175 percent faster
  19. (BOXFILL 16x16) 8640 solid rectangles per second -- 59 percent faster
  20. (BOXFILL 64x64) 1245 solid rectangles per second -- 2 percent slower
  21.  
  22. --------------------------------------------------------------------------------
  23. RECTANGLE vs BOXOUTLINE
  24.  
  25. RECTANGLE
  26. draws the outline of a rectangle
  27. standard C library
  28. (RECTANGLE 8x8)   6244 rectangle outlines per second
  29. (RECTANGLE 16x16) 5174 rectangle outlines per second
  30. (RECTANGLE 64x64) 2390 rectangle outlines per second
  31.  
  32. BOXOUTLINE
  33. draws the outline of a rectangle
  34. BEST C library
  35. (BOXOUTLINE 8x8)   33642 rectangle outlines per second -- 439 percent faster
  36. (BOXOUTLINE 16x16) 11645 rectangle outlines per second -- 125 percent faster
  37. (BOXOUTLINE 64x64) 3344 rectangle outlines per second -- 40 percent faster
  38.  
  39. --------------------------------------------------------------------------------
  40. LINE vs LINEXY
  41.  
  42. LINE
  43. draws a line
  44. standard C library
  45. (LINE horizontal 8)  25365 lines per second
  46. (LINE horizontal 16) 21590 lines per second
  47. (LINE horizontal 64) 10773 lines per second
  48. (LINE vertical 8)    23802 lines per second
  49. (LINE vertical 16)   18349 lines per second
  50. (LINE vertical 64)   8190 lines per second
  51. (LINE diagonal 8)    19435 lines per second
  52. (LINE diagonal 16)   13869 lines per second
  53. (LINE diagonal 64)   5108 lines per second
  54.  
  55. LINEXY
  56. draws a line
  57. BEST C library
  58. (LINEXY horizontal 8)  64168 lines per second -- 153 percent faster
  59. (LINEXY horizontal 16) 47885 lines per second -- 122 percent faster
  60. (LINEXY horizontal 64) 36594 lines per second -- 240 percent faster
  61. (LINEXY vertical 8)    42996 lines per second -- 81 percent faster
  62. (LINEXY vertical 16)   32262 lines per second -- 76 percent faster
  63. (LINEXY vertical 64)   12564 lines per second -- 53 percent faster
  64. (LINEXY diagonal 8)    29761 lines per second -- 53 percent faster
  65. (LINEXY diagonal 16)   18929 lines per second -- 36 percent faster
  66. (LINEXY diagonal 64)   5998 lines per second -- 17 percent faster
  67.  
  68. --------------------------------------------------------------------------------
  69. PUTPIXEL vs PIXEL
  70.  
  71. PUTPIXEL
  72. changes the color of a pixel
  73. standard C library
  74. (PUTPIXEL) 47377 pixels written per second
  75. PIXEL
  76. changes the color of a pixel
  77. BEST C library
  78. (PIXEL) 95557 pixels written per second -- 102 percent faster
  79. --------------------------------------------------------------------------------
  80. GETPIXEL vs WHATPIXEL
  81.  
  82. GETPIXEL
  83. reads the color of a pixel
  84. standard C library
  85. (GETPIXEL) 38258 pixels read per second
  86. WHATPIXEL
  87. reads the color of a pixel
  88. BEST C library
  89. (WHATPIXEL) 68410 pixels read per second -- 79 percent faster
  90. --------------------------------------------------------------------------------
  91.     CONCLUSION -- BEST C library is clearly faster than the standard C library
  92. RECOMMENDATION -- get it!
  93. --------------------------------------------------------------------------------
  94.